﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Query.aspx.cs" Inherits="WebApplication1.QueryFb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<h4> FQL SAMPLE </h4>
<div>
Obter user: SELECT uid, name FROM user WHERE uid = 
<p>
Obter lista de amigos de um determinado owner(NetPonto): SELECT name, fan_count  FROM page WHERE page_id=147281438622
</p>
</div>
<hr />
<div>
    <asp:TextBox runat="server" TextMode="MultiLine" Rows="5" Columns="100" ID="txbQuery" ></asp:TextBox>
</div>
<div>
    <asp:Button runat="server" Text="Query" ID="btnQuery" />
</div>

 
    <asp:ListView runat="server" ID="pageListRes" >
        <LayoutTemplate>
        <div id="itemPlaceholder" runat="server">
            <asp:PlaceHolder ID="itemContainer" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemSeparatorTemplate>
         <p></p>
      </ItemSeparatorTemplate>
    <ItemTemplate>
        <ul>
            <li>Name:  <%# ((Dictionary<string, object>)Container.DataItem)["name"].ToString()%> </li>
            <li>Fan Count: <%# ((Dictionary<string, object>)Container.DataItem)["fan_count"].ToString()%> </li>
         </ul>   
    </ItemTemplate>
    </asp:ListView>

</asp:Content>
